#ifndef BOOK_CHANGE_H
#define BOOK_CHANGE_H

#include <QsqlTableModel>
#include <QStandardItemModel>
#include <QWidget>
#include <QSqlDatabase>
#include <QsqlQuery>
#include <QMessageBox>
#include"book_sql.h"
#include"global.h"
namespace Ui {
class book_change;
}

class book_change : public QWidget
{
    Q_OBJECT

public:
    explicit book_change(QWidget *parent = nullptr);
    ~book_change();
    void set_table_model(QStandardItemModel *model);
    bool is_editing;
    void public_edit_clicked();
    QSqlTableModel *model;
private slots:
    void on_Add_clicked();

    void on_Delete_clicked();

    void on_Edit_clicked();

    void on_Submit_clicked();

    void on_Recall_clicked();

private:
    Ui::book_change *ui;
};

#endif // BOOK_CHANGE_H
